#include "Utility.h"

// Clamps a value between two other values.
float Minicraft::Utility::Clamp(float value, float min, float max)
{
	if (value < min)
		return min;
	if (value > max)
		return max;

	return value;
}